package cn.kin.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.kin.pojo.Class;
import cn.kin.service.ClassService;

@Controller
@RequestMapping("class")
public class ClassController {

	@Resource
	private ClassService cService;
	
	//进入班级列表管理课程
	@RequestMapping("list")
	public String classList(Model model) {
		List<Class> cList=null;
		cList=cService.findAllClass();
		model.addAttribute("cList",cList);
		return "leader/classList";
	}
}
